<!DOCTYPE html>
<html lang="en">
  <head>
    <?php echo Yaf_View_Simple::render('header.phtml'); ?>
  </head>
  <body>
    <?php echo Yaf_View_Simple::render('nav.phtml'); ?>
    <div class="container">
      <div class="col-lg-2">
        <div class="list-group" id="member-menu" >
          <?php foreach($menu as $value) { ?>
          <a href="<?php echo $value['link'].'?id='.$mid ?>" class="list-group-item"><?php echo $value['title']; ?></a>
          <?php } ?>
        </div>
      </div> <!-- /.col-lg-12 -->
      <div class="col-lg-10">
        <div class="page-header" >
          <h3>My comments</h3>
        </div>
        <table class="table table-bordered">
          <thead>
            <tr>
              <th>comment</th>
              <th>Date</th>
              <th>Look</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach($comment as $val){ ?>
            <tr>
              <td><?php echo $val['comment']; ?></td>
              <td><?php echo $val['create_time']; ?></td>
              <td>
                <a href="/index/article/post?id=<?php echo $val['aid']; ?>">
                  <span class="glyphicon glyphicon-search" ></span>
                </a>
              </td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
        <nav aria-label="...">
          <ul class="pager">
            <?php if($page != 0){ ?>
            <li class="previous">
              <a href="/member/center/comment?id=<?php echo $mid.'&page='.($page-20); ?>">
                <span aria-hidden="true">&larr;</span> Older</a></li>
            <?php } ?>
            <li class="next">
              <a href="/member/center/comment?id=<?php echo $mid.'&page='.($page+20); ?>">
                Newer <span aria-hidden="true">&rarr;</span></a></li>
          </ul>
        </nav>
      </div>
    </div> <!-- /.container -->
    <footer class="footer">
      <?php echo Yaf_View_Simple::render('footer.phtml'); ?>
    </footer> <!-- /.footer -->
  </body>
</html>
